package com.dianjing.dianqun.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.dianjing.dianqun.common.base.CrudMpper;
import com.dianjing.dianqun.model.ContentComment;

public interface ContentCommentMapper extends CrudMpper<ContentComment> {
	/**
	 *
	 * @mbggenerated 2017-11-03
	 */
	int deleteByPrimaryKey(Integer commentId);

	/**
	 *
	 * @mbggenerated 2017-11-03
	 */
	int insert(ContentComment record);

	/**
	 *
	 * @mbggenerated 2017-11-03
	 */
	int insertSelective(ContentComment record);

	/**
	 *
	 * @mbggenerated 2017-11-03
	 */
	ContentComment selectByPrimaryKey(Integer commentId);

	/**
	 *
	 * @mbggenerated 2017-11-03
	 */
	int updateByPrimaryKeySelective(ContentComment record);

	/**
	 *
	 * @mbggenerated 2017-11-03
	 */
	int updateByPrimaryKey(ContentComment record);

	List<ContentComment> selectByContentId(@Param("contentId") Integer contentId,@Param("userId") Integer userId);

	ContentComment selectByUserIdChecked(@Param("commentId") Integer commentId, @Param("userId") Integer userId);
}